<template>
    <div class=''>
        <van-nav-bar title="商品详情页" left-text="返回" left-arrow @click-left="onClickLeft" />
        <img :src="$route.query.item.img" alt="">
        <p>{{$route.query.item.title}}</p>
        <p>￥：{{$route.query.item.price}}元</p>
    </div>
</template>

<script>
export default {
    data() {
        return {};
    },
    mounted() {},
    methods: {
        onClickLeft(){
            this.$router.go(-1)
        }
    },
};
</script>

<style lang='scss'>
img{
    width: 80%;
}
</style>
